import type { MenuProps } from 'antd';

type MenuItem = Required<MenuProps>['items'][number];

interface IObject<T = any> {
  [key: string]: T;
}

interface IRes extends IObject {
  content: IObject;
  success: boolean;
  errorCode?: null | number;
  errorMsg?: null | number;
}

export type { IObject, IRes, MenuProps, MenuItem };
